package com.vhall.component.controller.account.facade.adm;

import com.vhall.component.entity.account.vo.AdminAuthLogOutReqVO;
import com.vhall.component.entity.account.vo.AdminAuthLoginReqVO;
import com.vhall.component.entity.account.vo.AdminAuthLoginRspVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * admin端用户登录/退出
 *
 * @author longzhen.gong
 * @date 2021/6/9 18:49
 */
@FeignClient(name = "AdminAuthFacade", path = "/v4/account/admin/auth")
public interface AdminAuthFacade {

    /**
     * admin登陆
     *
     * @param authLoginVO 参数
     * @return 返回值
     */
    @ApiOperation("登录")
    @PostMapping(value = "/login")
    AdminAuthLoginRspVO login(@Validated AdminAuthLoginReqVO authLoginVO);

    /**
     * admin登出
     *
     * @param logOutReqVO 参数
     * @return 返回值
     */
    @ApiOperation("登出")
    @PostMapping(value = "/logout")
    boolean logout(@Validated AdminAuthLogOutReqVO logOutReqVO);
}
